package com.ww.tmp.test;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.io.file.PathUtils;

public class Demo01 {

	public static void main(String[] args) throws IOException {
//		test01();
		test02();
	}

	static void test01() {
		String clazz = "com.huaxin.rmps.common.bo.urule.in.RiskInfo";
		String clazzName = clazz.substring(clazz.lastIndexOf("."));
		System.out.println(clazzName);
	}
	
	static void test02() throws IOException {
		Path path = Paths.get("D:/test/hello-abc.csv");
		if (PathUtils.isEmpty(path)) {
			System.out.println("能区分出是文件不存在还是文件为空吗");
		}
	}

}


class Student {

	private long age;

	public long getAge() {
		return age;
	}

	public void setAge(long age) {
		this.age = age;
	}

	public long nextId1() {
		return new Long(779798166487830528L);
	}

	public long nextId2() {
		return 779798166487830529L;
	}
}